package com.roocon.design_pattern.chapter02_observer.demo1;

public class ObserverClient {

  public static void main(String[] args) {
    final Subject subject = new Subject();
    new BinaryObserver(subject);
    new OctalObserver(subject);
    subject.setState(10);
    System.out.println("==============");
    subject.setState(10);
    System.out.println("==============");
    subject.setState(15);
    System.out.println("==============");
  }
}
